package com.daiyang.lotterysystem;

import com.daiyang.lotterysystem.dao.dataobject.Encrypt;
import com.daiyang.lotterysystem.dao.mapper.UserMapper;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class Sql {
    @Autowired
    private UserMapper userMapper;
    @Test
    public void contextLoads() {
        System.out.println(userMapper.countEmail("123@123.com"));
    }
    @Test
    void countPhoneNumber() {
        int count = userMapper.countPhoneNumber(new Encrypt("12345678901"));
        System.out.println(count);
    }

}
